<%--
  Created by IntelliJ IDEA.
  User: iMist
  Date: 2018/8/14
  Time: 16:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%
    //说明时重定向过来的值
    String flag = request.getParameter("flag");
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="form.css" rel="stylesheet" type="text/css"/>
    <title>Login</title>
    <script type="text/javascript">
        var flag = '<%=flag %>';
        if ("1" == flag) {
            alert("你尚未登陆，或者账号在异地登陆，请重新登陆！");
        }
    </script>
</head>
<body>
<form action="login.jsp" method="post" class="smart-green">
    <h1>系统登录</h1>

    <label>
        <span>用户名:</span>
        <input id="username" type="text" name="username"/>
    </label>

    <label>
        <span>密码:</span>
        <input id="password" type="password" name="password"/>
    </label>

    <span>&nbsp;</span>

    <label>
        <input type="submit" class="button" value="登录"/>
    </label>

</form>
</body>
</html>
